package xiyuan.weibo;

import weibo4j.Users;
import weibo4j.model.User;
import weibo4j.model.WeiboException;

public class UserInfo {
	private String username;
	private long uid;
	
	public UserInfo(long uid){
		this.uid = uid;

		Users um = new Users();
		this.username = "";
		try {
			User user = um.showUserById(uid + "");
			this.username = user.getName();
		} catch (WeiboException e) {
			e.printStackTrace();
		}
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @return the uid
	 */
	public long getUid() {
		return uid;
	}
}
